<template>
  <div class="home-page">
    <header class="header">
      <h1>电影院后台管理系统</h1>
      <nav class="nav-menu">
        <router-link to="/FilmManagement" class="nav-item" active-class="active">电影管理</router-link>
        <router-link to="/SchedulingManagement" class="nav-item" active-class="active">排片管理</router-link>
        <router-link to="/SeatManagement" class="nav-item" active-class="active">座位管理</router-link>
        <router-link to="/OrderProcessing" class="nav-item" active-class="active">订单处理</router-link>
        <router-link to="/Statistics" class="nav-item" active-class="active">数据统计</router-link>
      </nav>
    </header>
    <main class="main-content">
      <!-- 这里可以放置欢迎信息或其他内容 -->
      <router-view></router-view>
    </main>
    <p>欢迎使用电影院后台管理系统！</p>
  </div>
</template>

<script>
export default {
  name: 'Home',
};
</script>

<style scoped>
.home-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: #f7f7f7;
}

.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.header h1 {
  margin: 0;
  font-size: 28px;
  font-weight: bold;
  color: #333;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
}

.nav-item {
  text-decoration: none;
  color: #555;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 8px;
  transition: background-color 0.3s, color 0.3s;
}

.nav-item.active,
.nav-item:hover {
  background-color: #007bff;
  color: white;
}

.main-content {
  text-align: center;
  width: 100%;
  padding: 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
</style>